package service.securite;


import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

//import org.jmock.Mockery;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/*public class TestDroitsAcces {
	private Mockery context = new Mockery();
	private HttpServletRequest requete = null;
	private HttpSession session = null;
	
	@Before
	public void setUp() throws Exception {
		this.requete = this.context.mock(HttpServletRequest.class);
		this.session = this.requete.getSession();
	}

	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void isConnecteSessionVide() {
		assertFalse(DroitsAcces.isConnecte(this.session));
		this.session.setAttribute("typeCompte", DroitsAcces.TC_CLIENT);
		assertTrue(DroitsAcces.isConnecteClient(this.session));
	}
	
}*/
